package com.gamota.mobi.fragment;

import android.content.Context;
import android.os.Bundle;
import android.view.View;

import com.actionbarsherlock.app.SherlockFragment;

public abstract class BaseFragment extends SherlockFragment {
	protected View mParent;
	protected Context mContext;
	
	@Override
	public void onActivityCreated(Bundle savedInstanceState) {
		super.onActivityCreated(savedInstanceState);
		this.setRetainInstance(true);
		initActions();
	}

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		this.mContext = this.getActivity();
		initVariables();
	}

	@Override
	public void onViewCreated(View view, Bundle savedInstanceState) {
		super.onViewCreated(view, savedInstanceState);
	}

	protected abstract void initVariables();

	protected abstract void initActions();
}
